$(function() {
  $('#download').click( function() {
    $.getJSON('/_downloadwo', {
      wonos: $("#wonos").val(),
      date: new Date().getTime()+Math.random()
    }, function(data) {
      var curr = data.filename;
      window.location.href = "/files/" + curr;
    });
    return false;
  });
})
